﻿using System;
using System.Configuration;
using System.Data;
using System.Collections.Generic;
using KPIS.DBM;

namespace KPIS.GERP.GAMS.MODEL
{
    public static class SystemInfo
    {
        private static string connectionString = ConfigurationSettings.AppSettings["ConnectionString"].ToString();
        private static DataProvider provider = DataProvider.SqlServer;

        private static string deleteRecordStatus = "D"; // ลบ (master, transection)
        private static string processRecordStatus = "P"; // ยืนยันรายการแล้ว รออนุมัติ (transection)
        private static string approveRecordStatus = "A"; // อนุมัติแล้ว (transection)
        private static string workRecordStatus = "W"; // รายการใหม่ ยังไม่ได้ยืนยันรายการ (transection)
        private static string cancelRecordStatus = "C"; // ยกเลิกรายการ (transection)
        private static string activeRecordStatus = "U"; // ใช้งานอยู่ (master)

        public static string _ConnectionString
        {
            get
            {
                return connectionString;
            }
        }

        public static DataProvider _DataProvider
        {
            get
            {
                return provider;
            }
        }

        public static string _DeleteRecordStatus
        {
            get
            {
                return deleteRecordStatus;
            }
        }

        public static string _ProcessRecordStatus
        {
            get
            {
                return processRecordStatus;
            }
        }

        public static string _ApproveRecordStatus
        {
            get
            {
                return approveRecordStatus;
            }
        }

        public static string _CancelRecordStatus
        {
            get
            {
                return cancelRecordStatus;
            }
        }

        public static string _WorkRecordStatus
        {
            get
            {
                return workRecordStatus;
            }
        }

        public static string _ActiveRecordStatus
        {
            get
            {
                return activeRecordStatus;
            }
        }
    }
}
